package com.chb.weibo3;

import java.io.IOException;

import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

public class LastReducer extends Reducer<Text, Text, Text, Text>{
	@Override
	protected void reduce(Text key, Iterable<Text> values, Context context) throws IOException,
			InterruptedException {
		StringBuilder sb = new StringBuilder();
		for (Text text : values) {
			sb.append(text.toString()+"\t");
		}
		context.write(key, new Text(sb.toString()));
	}
}
